package com.ruoyi.exam.serive;

import com.ruoyi.common.vo.PageResult;
import com.ruoyi.exam.domain.ExamUnreal;
import com.ruoyi.exam.vo.ExamUnrealAnswer;
import com.ruoyi.exam.vo.ExamUnrealListVO;
import com.ruoyi.exam.vo.ExamUnrealQuestionData;
import com.ruoyi.questionBank.domain.Question;

import java.util.List;

public interface IExamUnrealService {
    /**
     * 分页获取虚拟考核信息
     * @param listVO
     * @return
     */
    PageResult<ExamUnreal> page(ExamUnrealListVO listVO);

    /**
     * 获取虚拟考核题目数据
     * @param uid
     * @return
     */
    List<ExamUnrealQuestionData> getUnrealQuestionData(long uid);

    /**
     * 获取个人虚拟考核数据
     * @param uid
     * @return
     */
    ExamUnreal getByUid(long uid);


    /**
     * 提交答案
     * @param uid
     * @param qid
     * @param answer
     * @return 正确答案
     */
    ExamUnrealAnswer submitAnswer(long uid , int qid , String answer);

    /**
     * 新增
     * @param unreal
     */
    void add(ExamUnreal unreal);

    /**
     * 更新
     * @param unreal
     */
    void update(ExamUnreal unreal);
}
